package com.example.demo.bean;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

@JsonInclude(Include.NON_NULL)
public class Result {
	private String code = "200";
	private String msg;
	private Object data;
	private String token;
	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public static Result getResultOk(Object data) {
		Result result = new Result();
		result.setCode("200");
		result.setData(data);
		return result;
	}

	public static Result getOk() {
		Result result = new Result();
		result.setCode("200");
		return result;
	}
}
